package com.aaa.ms.service;

import com.aaa.common.entity.TbOrder;
import com.aaa.ms.config.MyLBRule;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "OrderServer",configuration = MyLBRule.class)
public interface OrderService {
    /***
     * 调用远程订单
     * 1.遵循restful风格，请求方式必须和资源一致
     * 2.返回值必须和被调用者返回值一致
     * 3.请求路径必须和被调用者路径一致
     * @return
     */
    @GetMapping("/order/queryAll")
    List<TbOrder> getAll();
}
